package com.together.sfipp.service.impl;

import com.together.sfipp.mapper.BabyMapper;
import com.together.sfipp.mapper.LandMapper;
import com.together.sfipp.pojo.Land;
import com.together.sfipp.service.LandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class LandServiceImpl implements LandService {
    @Autowired
    private LandMapper landMapper;

    @Override
    public Integer selectAmount(String landRules) {
        return landMapper.selectAmount(landRules);
    }

    @Override
    public void insert(Land land) {
        landMapper.insert(land);
    }

    @Override
    public void delete(Integer landId) {
        landMapper.delete(landId);
    }

    @Override
    public void update(Land land) {
        landMapper.update(land);
    }

    @Override
    public List<Land> selectAll() {
        return landMapper.selectAll();
    }

    @Override
    public List<Land> selectNeed(Map<String, Object> params) {
        return landMapper.selectNeed(params);
    }

    @Override
    public String selectAmountById(Integer landId) {
        return landMapper.selectAmountById(landId);
    }
}
